var LocationChangeListener = {
  QueryInterface: function(iid) {
		if (iid.equals(Components.interfaces.nsIWebProgressListener) ||
			iid.equals(Components.interfaces.nsISupportsWeakReference) ||
			iid.equals(Components.interfaces.nsISupports)) {
			return this;
		}
		
		throw Components.results.NS_NOINTERFACE;
  },

  onLocationChange: function(progress, request, uri) {
  	if (progress.DOMWindow == progress.DOMWindow.parent) {
	    Yummy.processNewURL(uri);
	  }
  },

  onStateChange: function() {},
  onProgressChange: function() {},
  onStatusChange: function() {},
  onSecurityChange: function() {},
  onLinkIconAvailable: function() {}
};